This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.
This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.
The list of the themes | Global methods by category | Global methods by name | The list of the classes | The list of the controls |
aCosH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Arcuscosinus Hyperbolicus of x. | ||||
ArithmeticShift(value as Integer, count as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an arithmetic Shift of value and cares for the sign (+ or -). | ||||
Example:
msgbox str(ArithmeticShift(5,3)) displays 40 which is 5*(2^3) = 5 * 8 | ||||
Notes:
Allways using 32bit. | ||||
aSinH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Arcussinus Hyperbolicus of x. | ||||
aTanH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Arcustangens Hyperbolicus of x. | ||||
BitExcl(value as Integer, bitNumber as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an bitwiseAnd using the value and bitwisenot of 2^bitNumber. Or: Switches off the bit bitNumber inside value. | ||||
Example:
msgBox str(BitExcl(80,4)) ' displays 64 which is 80 without 16 = 2^4+2^5 without 2^4 | ||||
Notes:
Allways using 32bit. | ||||
BitIncl(value as Integer, bitNumber as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an bitwiseOr using the value and 2^bitNumber Or: Switches on the bit bitNumber inside value. | ||||
Example:
msgBox str(BitIncl(64,4)) ' displays 80 which is 64 + 16 = 64 + 2^4 | ||||
Notes:
Allways using 32bit. | ||||
BitIsSet(value as Integer, bitNumber as Integer) as Boolean | ||||
global method, Math | Sa, 27. Jul 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Tests whether a certain bit is set inside the value | ||||
Example:
bool=BitIsSet(80,4) ' true, because 2^4=16 is included in 80=2^4+2^5 | ||||
Notes:
Allways using 32bit. | ||||
BitVal(bitNumber as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns 2^bitNumber | ||||
Example:
msgBox str(BitwiseNot(5)) ' displays 32 | ||||
Notes:
Allways using 32bit. | ||||
BitwiseDiff(val1 as Integer, val2 as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns all bits of val1 which are not in val2. | ||||
Example:
msgBox str(BitwiseDiff(65,80)) ' displays 1, because 65=2^0+2^5 includes 1=2^0, which is not part of 80=2^4+2^5. | ||||
Notes:
Allways using 32bit. | ||||
BitwiseNAnd(val1 as Integer, val2 as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
negates both values and does bitwiseAnd on them. | ||||
Example:
msgBox str(bitwisenor(65,80)) ' displays -82 | ||||
Notes:
Allways using 32bit. | ||||
BitwiseNOr(val1 as Integer, val2 as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
negates both values and does bitwiseor on them. | ||||
Example:
msgBox str(bitwisenor(65,80)) ' displays -65 | ||||
Notes:
Allways using 32bit. | ||||
BitwiseNot(value as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an bitwise negation of value. | ||||
Example:
msgBox str(BitwiseNot(5)) ' displays -6 | ||||
Notes:
Allways using 32bit. | ||||
BitwiseRotate(value as Integer, count as Integer, offset as Integer, width as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an bitwise rotation of value. | ||||
Example:
msgBox str(BitwiseRotate(5,2,0,32)) ' displays 20 | ||||
Notes:
Allways using 32bit. | ||||
CosH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Cosinus Hyperbolicus of x. | ||||
DoubleToExtendedStr(value as double) as string | ||||
global method, Math | Mo, 13. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: -> "" | ||
Function:
Returns the double as an 80bit Float stored inside a ten byte string. | ||||
Example:
dim s as string dim d as double d=5 s=DoubleToExtendedStr(d) msgBox s d=extendedStrToDouble(s) msgBox str(d) | ||||
Notes:
Returns "" if there is not enough memory to create the string. | ||||
ExtendedStrToDouble(value as string) as double | ||||
global method, Math | Mo, 13. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: -> NAN | ||
Function:
Returns the 80bit Float as a double. | ||||
Example:
dim s as string dim d as double d=5 s=DoubleToExtendedStr(d) msgBox s d=extendedStrToDouble(s) msgBox str(d) | ||||
Notes:
Returns NAN (255) if the string is not valid. e.g. "". | ||||
IsFinite(d as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns true if the parameter is finite. | ||||
Example:
x=1/0 if not isfinite(x) then msgbox "the result is Infinite." end if | ||||
IsNAN(d as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns true if the parameter is not a number. | ||||
Example:
x=sqrt(-1) // if isnan(x) then msgbox "the square root of -1 is not correct." end if | ||||
LogicalShift(value as Integer, count as Integer) as Integer | ||||
global method, Math | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Does an logical Shift of value and doesn't take care for the sign (+ or -). | ||||
Example:
msgbox str(ArithmeticShift(5,3)) displays 40 which is 5*(2^3) = 5 * 8 | ||||
Notes:
Allways using 32bit. | ||||
SinH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Sinus Hyperbolicus of x. | ||||
TanH(x as double) as double | ||||
global method, Math | So, 5. Mai 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns Tangens Hyperbolicus of x. |
Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.